import request from '@/utils/request'
export function createPartner(params) {
  return request({
    url:'product/partner/addPartner',
    method:'post',
    data:params
  })
}

export function updatePartner(params) {
  return request({
    url:'product/partner/update',
    method:'post',
    data:params
  })
}
export function fetchList(params) {
  return request({
    url:'/product/partner/list/'+params.pageNum+'/'+params.pageSize,
    method:'get',
    params:params
  })
}

export function queryPartnerDetail(params) {
  return request({
    url:'/product/partner/info',
    method:'post',
    params:params
  })
}

export function queryAllBrand(data) {
  return request({
    url:'/product/brand/list/1/100000',
    method:'post',
    data:data
  })
}

export function deletePartner (code) {
  return request({
    url:`/product/partner/deletePartner/${code}`,
    method:'post',
  })
}
